/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Services;

import Services.exception.ServiceException;
import beans.StoreBean;
import database.daos.DAOException;
import database.daos.StoreDAO;




/**
 *
 * @author Anthar
 */
public class StoreServices {

    private StoreDAO storeDAO;

        public StoreServices(){
            storeDAO = new StoreDAO();
        }

        public StoreBean searchStore(String RFC) throws ServiceException, DAOException, database.daos.DAOException{
            return getStoreDAO().searchStore(RFC);
        }

     /********************
      * GETERS Y SETTERS
      ********************/

    /**
     * @return the storeDAO
     */
    public StoreDAO getStoreDAO() {
        return storeDAO;
    }

    /**
     * @param storeDAO the storeDAO to set
     */
    public void setStoreDAO(StoreDAO storeDAO) {
        this.storeDAO = storeDAO;
    }

}
